SRC_DIR = ./src
INC_DIR = ./include

TARGET = a_link
CC = gcc
CFLAGS = -g -Wall
PTHREAD = -lpthread

${TARGET}:test.o link.o tools.o
	${CC} -o ${TARGET} test.o link.o tools.o ${PTHREAD}
test.o:test.c
	${CC} ${CFLAGS} -c test.c -o test.o ${PTHREAD}
link.o:link.c
	${CC} ${CFLAGS} -c link.c -o link.o
tools.o:link.c
	${CC} ${CFLAGS} -c tools.c -o tools.o
.PHONY:clean
clean:
	rm -rf *.o ${TARGET}
